package com.dhcc.excetion;

public class BussesExcetion extends RuntimeException {
    private static final long serialVersionUID = 6610083281801529147L;
    private String errorMessage;

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    //用指定的详细信息和原因构造一个新的异常
    public BussesExcetion(String message, String code){
        super(message);
        this.errorMessage=code;
    }

    public BussesExcetion(String message){
        super(message);
    }
}
